
<script src="/static/shared/js/common_func.js"></script>

<!--[if gt IE 8]><!-->
<script src="/static/shared/js/lib/jquery.customSelect.min.js"></script>
<script src="/static/shared/js/lib/icheck.min.js"></script>
<script src="/static/shared/js/function_form.js"></script>
<!--<![endif]-->
<script src="/static/shared/js/lib/jquery.tile.min.js"></script>

<script src="/static/shared/js/lib/jquery.powertip.min.js"></script>
<link rel="stylesheet" href="/static/shared/js/lib/jquery.powertip.css" />
<script src="/static/area/js/area_result_common.js"></script>
<script src="/static/area/js/area_result_list.js"></script>
<script src="/static/area/js/area_result_picture.js"></script>
<script src="/static/shared/js/header.js"></script>

{if $Show_map}
<script src="/static/shared/js/mapple/Mapple.js"></script>
<script src="/static/shared/js/mapple/scrollmap.js"></script>
<script src="/static/shared/js/mapple/slider.js"></script>
<script src="/static/area/js/area_result_map.js"></script>
{/if}

<script>
{literal}
dataLayer=[{
  'event': 'result',
{/literal}
  'rent': '{$ftData.tinryo1}-{$ftData.tinryo2}_{$ftData.tinryo}',
  'madori': '{$ftData.madori}',
  'years': '{$ftData.years}',
  'kouzou': '{$ftData.kouzou}',
  'pet': '{$ftData.pet}',
  'security': '{$ftData.security}',
  'bathroom': '{$ftData.bathroom}'
{literal}
}];
{/literal}
</script>
<script>
{literal}
dataLayer.push({
  'event': 'ichiran',
  'ecommerce': {
    'impressions': [
{/literal}
{assign var=counter start=1 skip=1}
{foreach from=$ftBukkenList item=t name=ftTatemono}
{foreach from=$t item=b name=ftHeya}
{foreach from=$b.keisaiTenpo item=s name=ftShop}
      {$smarty.ldelim}
        'name': '{$s.M05_TENPO_CD}',
        'id': '{$b.T03_ORIGINAL_HEYA_CD01}-{$b.T03_TENPO_CD}',
        'price': '{$b.T03_YACHIN}',
        'brand': '',
        'category': '{$b.T03_TODOUFUKEN_STR}/{$b.T03_SHIKUCHOUSON_STR}/{$b.T03_MADORI_STR}',
        'variant': '',
        'list': '',
        'position': {counter}
      {$smarty.rdelim}{if !($smarty.foreach.ftTatemono.last && $smarty.foreach.ftHeya.last && $smarty.foreach.ftShop.last)},{/if}
{/foreach}
{/foreach}
{/foreach}
{literal}
    ]
  }
});
{/literal}
</script>
